package xdu.lz.stage6_threadpool.chapter3_threadPoolExecutorAPI.myFuture;



public interface Future<T> {

    T get() throws InterruptedException;

    //尝试获取task结果，超时则抛出超时异常
    T tryGet(long mills) throws InterruptedException, TimeOutException;

}
